package 枚举用法;

public class Test {
    public static void main(String[] args) {
        check(Constant2.BOY);
    }

    public static void check(Constant2 sex) {
        switch (sex) {
            case BOY:
                System.out.println("展示美女图");
                break;
            case GIRL:
                System.out.println("展示帅哥图");
                break;
        }
    }
}
